{% extends "base.html" %}
{% block javascript %}
	{% load static %}
	<script type="text/javascript">
		$.ajaxSetup({
			data: {"csrfmiddlewaretoken":'{{csrf_token}}'}
		})
	</script>
	<script src="{% static 'js/my_comics.js' %}" type="text/javascript" charset="utf-8"></script>
{% endblock %}
{% block css %}
	{% load static %}
	<link rel="stylesheet" href="{% static 'css/my_comics.css' %}">
{% endblock %}
{% block title %}
我的漫画
{% endblock %}
{% block body %}
<div class="container">
	<div class="row">
		<table class="table table-striped table-hover ">
			<tr>
				<th>ID</th>
				<th>漫画名</th>
				<th>封面</th>
				<th>展示状态</th>
				<th>设置</th>
			</tr>
			{% load static %}
			{% csrf_token %}
			{% for comic in comics %}
			<tr id="{{comic.id}}">
				<td>{{ comic.id }}</td>
				<td>{{ comic.name }}</td>
				<td><img src="{{ static }}/media/{{ comic.cover }}" alt="" class="img-responsive" style="height:200px">
				</td>
				<td><span class="btn btn-default " onclick="isShow(this)">{{ comic.showStatus }}</span></td>
				<td><span class="glyphicon glyphicon-wrench btn-lg"></span></td>
			</tr>
			{% endfor %}
		</table>
	</div>
</div>
{% endblock %}
